package com.alili_tv.system.entity.dto;

import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

/**
 * DPlayer 发送弹幕请求参数类
 */
@Getter
@Setter
@ToString
public class Barrage {
    /**
     * 视频id
     */
    private Long id;

    /**
     * 弹幕内容
     */
    private String text;

    /**
     * 出现时间
     */
    private Double time;

    /**
     * 类型
     */
    private Integer type;

    /**
     * 颜色
     */
    private Integer color;

    /**
     * token
     */
    private String token;

    public Barrage() {
    }

    public Barrage(String text, Double time, Integer type, Integer color) {
        this.text = text;
        this.time = time;
        this.type = type;
        this.color = color;
    }

    public Barrage(Double time, Integer type, Integer color, String ignore, String text) {
        this.text = text;
        this.time = time;
        this.type = type;
        this.color = color;
    }
}
